def add_ellipsis(iter):
    if isinstance(iter, list):
        for i, v in enumerate(iter):
            if len(v) > 10:
                iter[i] = v[0:10] + '...'
        return iter
    elif isinstance(iter, tuple):
        iter = list(iter)
        iter_list = add_ellipsis(iter)
        return tuple(iter_list)


print(add_ellipsis(['sadsaaaaaaaaaaaaaaaaaad']))
print(add_ellipsis(tuple(['dassssssssssssssdas'])))

# 可以思考下两种不同容器的使用场景，在结合题意思考下
